
package com.be.beadmin.product.repository;

import com.be.beadmin.product.entity.GuideBookFileInfo;
import io.swagger.models.auth.In;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
* @author cms
* @date 2023-09-19
**/
public interface GuideBookFileInfoRepository extends JpaRepository<GuideBookFileInfo, String>, JpaSpecificationExecutor<GuideBookFileInfo> {

    GuideBookFileInfo findGuideBookFileInfoByIdAndDelete(String id, Integer delete);

    GuideBookFileInfo findGuideBookFileInfoById(String id);

    Integer countGuideBookFileInfoByBatchProductIdAndAndDelete(String batchProductId, Integer delete);


    List<GuideBookFileInfo> findGuideBookFileInfoByBatchProductIdAndDelete(String batchProductId, Integer delete);


}